package com.cn.ahuniversity.controller;

import com.cn.ahuniversity.entity.Dnainformation;
import com.cn.ahuniversity.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/dbBIP")
public class Demo {

    @Autowired
    private DemoService demoService;


    @GetMapping("/Genes_Identified_by_GWAS_resule")
    public List<Dnainformation> pauseThread() {
        List<Dnainformation> list = null;
        try {
            list = demoService.find();

        } catch (Exception e) {
            e.printStackTrace();
        }
        return list;
    }
}
